﻿<%@ Page Title="Danh mục" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Hirecars.aspx.cs" Inherits="Transport.category" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%
    string idService = Request.QueryString["madichvu"];
    string hangxe = Request.QueryString["hangxe"];
    string PAGE = Request.QueryString["page"];
    int page;
    if (null == PAGE)
    {
        page = 1;
    }
    else
    {
        page = Convert.ToInt32(PAGE);
    }
     %>
    <div id="column-left">
        <div class="moduletable">
            <div class="box-heading">
                Thuê xe</div>
            <div id="categoty_content">
                <ul>
                    <%
                        Response.Write(GetService(idService));
                    %>
                </ul>
            </div>
        </div>
    </div>
    <div id="category_content">
        <%
            if(null != idService)
                Response.Write(getCar(idService,page));
            else
                if (null != hangxe)
                {
                    Response.Write(getCarByHangXe(hangxe,page));
                }
                else
                {
                    Response.Write(getCar(page));
                }
             %>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentFooter" runat="server">
</asp:Content>
